200
|
I've noticed that the toolbar is cut when perform scrolling. Is it possible to change that shape

ToolBar1->ArrangeItemsAs = Extoolbarlib_tlb::ArrangeItemsEnum::exArrangeItemsScroll | Extoolbarlib_tlb::ArrangeItemsEnum::exArrangeItemsHorizontal;
ToolBar1->VisualAppearance->Add(1,TVariant(String("gBFLBCJwBAEHhEJAAEhIDhAxGAyg0HG0Og40HIyiwAGY1GMJiYAf8jAEhhUnAAyhEqg8hk0oAsIjYxHAwmYwHEbGY2GEhGkMlFBlAOhAJhEuoUHjcbGQ1EtMp0hGsbG") +
"owEsvpNBlkpo9ZoNQp8rqMIqdkqwCr1ZrdbrFpsFvs1hg9VuVCjdBA0IoElhFog6zbDykUkhsPms3nMInc9hA0mNpoVrruQpdiutNq9kqlWtuQg+Sluewufp1gqWbEt+" +
"0UK0F81YAuGkut01F3lF7vF6yYA1Ujf4ATjNd8KmeHh84n1MGI1zt9rN7vOhg+9knB4ejAE0m3HHHJlfL1VB5sH6G76m/63Ey2xAG0uMbkIbUDh3me1vjoV7vYIhBQNI" +
"xjoOo5DKGKQj8hAhCbA6ThshAUN0g7or4DCFCQ14AHATIAHkbBZt83xxFCDcMw3DsQRFEINm8SQAHydpuxTEh4GkUzfHATYARnGsPn+d5mk5HkPv4g7/QBAQyhk1UFgB" +
"BMloTBqDwe8iEQkg0KITCzXyDDhZxI30uRJFMXG7FYARTFLfR1MMRSDNUcSC30fE5IYASLAMBhmjZDQQJs9wZB0qQhCaFChC81g3M8RRuAE5IPMENRjDUdN8g8vw7MtJ" +
"x5SseTHODCTpO0jp+hE/SZPqUSgAEpABCS9ytQkLyDTtPU2f8uUxGkg0dDtDxlXLCUPRMRxxRoAHW2wAICA=="));
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exScrollViewBorder] = 0x1000000;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->BackColor = RGB(128,128,128);
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Expand",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item->Check = true;
var_Item->ShowPopupOnChecked = true;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Padding = L"22,0,0,0";
var_Items1->Add(L"Radio 1",TNoParam(),TNoParam())->Radio = true;
var_Items1->Add(L"Radio 2",TNoParam(),TNoParam())->Radio = true;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",TNoParam(),TNoParam());
var_Item1->Radio = true;
var_Item1->Checked = true;
var_Item->Checked = true;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = TVariant(String("Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=") +
"2][chk=1])");
ToolBar1->Refresh();
|
199
|
I've noticed that the toolbar is cut when perform scrolling. Is it possible to prevent that

ToolBar1->ArrangeItemsAs = Extoolbarlib_tlb::ArrangeItemsEnum::exArrangeItemsScroll | Extoolbarlib_tlb::ArrangeItemsEnum::exArrangeItemsHorizontal;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exScrollViewBorder] = -1;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->BackColor = RGB(240,240,240);
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Expand",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item->Check = true;
var_Item->ShowPopupOnChecked = true;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Padding = L"22,0,0,0";
var_Items1->Add(L"Radio 1",TNoParam(),TNoParam())->Radio = true;
var_Items1->Add(L"Radio 2",TNoParam(),TNoParam())->Radio = true;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",TNoParam(),TNoParam());
var_Item1->Radio = true;
var_Item1->Checked = true;
var_Item->Checked = true;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = TVariant(String("Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=") +
"2][chk=1])");
ToolBar1->Refresh();
|
198
|
How can I scroll the items within the toolbar

ToolBar1->ArrangeItemsAs = Extoolbarlib_tlb::ArrangeItemsEnum::exArrangeItemsScroll | Extoolbarlib_tlb::ArrangeItemsEnum::exArrangeItemsHorizontal;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->BackColor = RGB(240,240,240);
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Expand",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item->Check = true;
var_Item->ShowPopupOnChecked = true;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Padding = L"22,0,0,0";
var_Items1->Add(L"Radio 1",TNoParam(),TNoParam())->Radio = true;
var_Items1->Add(L"Radio 2",TNoParam(),TNoParam())->Radio = true;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",TNoParam(),TNoParam());
var_Item1->Radio = true;
var_Item1->Checked = true;
var_Item->Checked = true;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = TVariant(String("Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=") +
"2][chk=1])");
ToolBar1->Refresh();
|
197
|
How can I show an item aligned to the bottom size of the toolbar

ToolBar1->ArrangeItemsAs = Extoolbarlib_tlb::ArrangeItemsEnum::exArrangeItemsHorizontal;
ToolBar1->Items->ToString = L"C1[chk],C2[chk]";
Extoolbarlib_tlb::IItemPtr var_Item = ToolBar1->Items->Add(L"R",TNoParam(),TNoParam());
var_Item->Check = true;
var_Item->Checked = true;
var_Item->Y = L"height - iheight";
|
196
|
How can I show an item aligned to the right of the toolbar

ToolBar1->ArrangeItemsAs = Extoolbarlib_tlb::ArrangeItemsEnum::exArrangeItemsHorizontal;
ToolBar1->Items->ToString = L"C1[chk],C2[chk]";
Extoolbarlib_tlb::IItemPtr var_Item = ToolBar1->Items->Add(L"R",TNoParam(),TNoParam());
var_Item->Check = true;
var_Item->Checked = true;
var_Item->X = L"width - iwidth";
|
195
|
How can I arrange horizontally the items on the toolbar

ToolBar1->ArrangeItemsAs = Extoolbarlib_tlb::ArrangeItemsEnum::exArrangeItemsHorizontal;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Expand",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item->Check = true;
var_Item->ShowPopupOnChecked = true;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Padding = L"22,0,0,0";
var_Items1->Add(L"Radio 1",TNoParam(),TNoParam())->Radio = true;
var_Items1->Add(L"Radio 2",TNoParam(),TNoParam())->Radio = true;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",TNoParam(),TNoParam());
var_Item1->Radio = true;
var_Item1->Checked = true;
var_Item->Checked = true;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = TVariant(String("Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=") +
"2][chk=1])");
ToolBar1->Refresh();
|
194
|
How can I display the drop down panel to a specified location only
ToolBar1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Popup",TVariant(2),TVariant(100));
var_Item->ShowPopupArrow = false;
var_Item->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
var_Item->ShowPopupOffset = L"0:screen,0:screen";
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
193
|
How can I displays the drop down bellow the control, rather than item itself

ToolBar1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Popup <b>1",TVariant(2),TVariant(100));
var_Item->ShowPopupArrow = false;
var_Item->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
var_Item->ShowPopupOffset = L"0,0:control";
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items->Add(L"Popup <b>2",TVariant(2),TVariant(200));
var_Item1->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item1->Items;
var_Items2->Add(L"Item 2",TNoParam(),TNoParam());
var_Items2->Add(L"Item 3",TNoParam(),TNoParam());
var_Items2->Add(L"Item 4",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
192
|
How can I change the visual appearance of the progress bar

ToolBar1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum(0x104)] = 0x1000000;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Progress",TNoParam(),TNoParam());
var_Item->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item->EditWidth = -128;
var_Item->set_EditValue(TVariant(25));
ToolBar1->Refresh();
|
191
|
How can I change the progress's color

ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum(0x104)] = RGB(255,0,0);
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Progress",TNoParam(),TNoParam());
var_Item->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item->EditWidth = -128;
var_Item->set_EditValue(TVariant(25));
ToolBar1->Refresh();
|
190
|
I am using the Item.Visible property on False to hide the item, but the editor is still visible
// CheckItem event - Occurs when the user checks the item.
void __fastcall TForm1::ToolBar1CheckItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
Extoolbarlib_tlb::IItemPtr var_Item = ToolBar1->Items->get_Item(TVariant(1000));
var_Item->Visible = true;
var_Item->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditReadOnly | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
ToolBar1->Refresh();
}
// UncheckItem event - Occurs when the user unchecks the item.
void __fastcall TForm1::ToolBar1UncheckItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
Extoolbarlib_tlb::IItemPtr var_Item = ToolBar1->Items->get_Item(TVariant(1000));
var_Item->Visible = false;
var_Item->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemDisableEdit;
ToolBar1->Refresh();
}
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"Visible",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"",TNoParam(),TNoParam());
var_Item1->Check = true;
var_Item1->Checked = true;
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items1->Add(L"Item 2",TNoParam(),TVariant(1000));
var_Item2->ItemHeight = 18;
var_Item2->Caption = L"Percent";
var_Item2->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditReadOnly | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item2->set_EditValue(TVariant(50));
var_Item2->Visible = true;
var_Items1->Add(L"Visible",TNoParam(),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
ToolBar1->Refresh();
|
189
|
How can I change the color of a disabled item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Disabled",TVariant(2),TVariant(0));
var_Item->ForeColor = RGB(255,0,0);
var_Item->Items->Add(L"",TNoParam(),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item->ShowPopupArrow = false;
var_Items->Add(L"Disabled",TNoParam(),TNoParam())->Enabled = false;
ToolBar1->Refresh();
|
188
|
Microsoft Windows 8.1 - Ribbon Like

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->ToString = L"[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])";
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->get_Item(TVariant(0))->Items;
var_Items1->Add(L"",TVariant(0),TVariant(0))->Padding = L"8,0,0,0";
Extoolbarlib_tlb::IItemPtr var_Item3 = var_Items1->Add(L"New Page",TNoParam(),TNoParam());
var_Item3->ToString = TVariant(String("[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
var_Item3->ID = 200;
var_Item3->Caption = L"Page1";
var_Item3->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
Extoolbarlib_tlb::IItemPtr var_Item = var_Item3->Items->get_Item(TVariant(0));
var_Item = var_Item->Items->Add(L"New Group",TNoParam(),TNoParam());
var_Item->ToString = L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()";
var_Item->Caption = L"<b><font ;14>A";
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item->Items;
var_Items2->BackgroundExt = L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]";
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items2->Add(L"",TVariant(2),TNoParam());
var_Item1->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupEqualWidth | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item1->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items3 = var_Item1->Items;
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items3->Add(L"R1",TNoParam(),TNoParam());
var_Item2->RadioGroup = 100;
var_Item2->Radio = true;
var_Item2->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item2->Checked = false;
Extoolbarlib_tlb::IItemPtr var_Item4 = var_Items3->Add(L"R2",TNoParam(),TNoParam());
var_Item4->RadioGroup = 100;
var_Item4->Radio = true;
var_Item4->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item4->Checked = true;
Extoolbarlib_tlb::IItemPtr var_Item5 = var_Items3->Add(L"R3",TNoParam(),TNoParam());
var_Item5->RadioGroup = 100;
var_Item5->Radio = true;
var_Item5->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item5->Checked = false;
var_Item1 = var_Item->Items->Add(L"New Group",TNoParam(),TNoParam());
var_Item1->ToString = L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()";
var_Item1->Caption = L"<b><font ;14>B";
Extoolbarlib_tlb::IItemsPtr var_Items4 = var_Item1->Items;
var_Items4->BackgroundExt = L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]";
Extoolbarlib_tlb::IItemPtr var_Item6 = var_Items4->Add(L"",TVariant(2),TNoParam());
var_Item6->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupEqualHeight | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item6->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items5 = var_Item6->Items;
Extoolbarlib_tlb::IItemPtr var_Item7 = var_Items5->Add(L"C1",TNoParam(),TNoParam());
var_Item7->Check = true;
var_Item7->Checked = true;
Extoolbarlib_tlb::IItemPtr var_Item8 = var_Items5->Add(L"C2",TNoParam(),TNoParam());
var_Item8->Check = true;
var_Item8->Checked = false;
Extoolbarlib_tlb::IItemPtr var_Item9 = var_Items5->Add(L"C3",TNoParam(),TNoParam());
var_Item9->Check = true;
var_Item9->Checked = true;
var_Item->Items->Add(L"",TVariant(0),TVariant(0))->Padding = L"4,0,0,0";
var_Item2 = var_Item->Items->Add(L"New Group",TNoParam(),TNoParam());
var_Item2->ToString = L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()";
var_Item2->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items6 = var_Item2->Items;
var_Items6->BackgroundExt = L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]";
Extoolbarlib_tlb::IItemPtr var_Item10 = var_Items6->Add(L"",TVariant(0),TNoParam());
var_Item10->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSlider;
var_Item10->ItemHeight = 76;
var_Item10->EditBorder = Extoolbarlib_tlb::EditBorderEnum::exEditBorderNone;
var_Item10->set_EditValue(TVariant(25));
Extoolbarlib_tlb::IItemPtr var_Item11 = var_Items6->Add(L"",TVariant(2),TNoParam());
var_Item11->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item11->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items7 = var_Item11->Items;
Extoolbarlib_tlb::IItemPtr var_Item12 = var_Items7->Add(L"",TVariant(2),TNoParam());
var_Item12->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items8 = var_Item12->Items;
Extoolbarlib_tlb::IItemPtr var_Item13 = var_Items8->Add(L"Button1",TVariant(2),TNoParam());
var_Item13->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items9 = var_Item13->Items;
var_Items9->Add(L"Item 1",TNoParam(),TNoParam());
var_Items9->Add(L"Item 2",TNoParam(),TNoParam());
var_Items9->Add(L"Item 3",TNoParam(),TNoParam());
var_Items8->Add(L"",TVariant(0),TVariant(0))->Padding = L"4,0,0,0";
Extoolbarlib_tlb::IItemPtr var_Item14 = var_Items8->Add(L"Button2",TVariant(2),TNoParam());
var_Item14->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items10 = var_Item14->Items;
var_Items10->Add(L"Item 4",TNoParam(),TNoParam());
var_Items10->Add(L"Item 5",TNoParam(),TNoParam());
var_Items10->Add(L"Item 6",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item15 = var_Items7->Add(L"Popup",TVariant(2),TNoParam());
var_Item15->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
Extoolbarlib_tlb::IItemsPtr var_Items11 = var_Item15->Items;
var_Items11->Add(L"Item 7",TNoParam(),TNoParam())->Check = true;
var_Items11->Add(L"Item 8",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemsPtr var_Items12 = var_Items11->Add(L"Item 9",TVariant(2),TNoParam())->Items;
var_Items12->Add(L"Item 10",TNoParam(),TNoParam());
var_Items12->Add(L"Item 11",TNoParam(),TNoParam());
var_Items12->Add(L"Item 12",TNoParam(),TNoParam());
var_Item4 = var_Items1->Add(L"New Page",TNoParam(),TNoParam());
var_Item4->ToString = TVariant(String("[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
var_Item4->ID = 300;
var_Item4->Caption = L"Page2";
var_Item4->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
Extoolbarlib_tlb::IItemPtr var_Item16 = var_Item4->Items->get_Item(TVariant(0));
Extoolbarlib_tlb::IItemsPtr var_Items13 = var_Item16->Items;
Extoolbarlib_tlb::IItemPtr var_Item17 = var_Items13->Add(L"S1",TNoParam(),TNoParam());
var_Item17->ItemHeight = 88;
var_Item17->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSpin | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item17->set_EditValue(TVariant(25));
Extoolbarlib_tlb::IItemPtr var_Item18 = var_Items13->Add(L"S2",TNoParam(),TNoParam());
var_Item18->ItemHeight = 88;
var_Item18->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSpin | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item18->set_EditValue(TVariant(50));
Extoolbarlib_tlb::IItemPtr var_Item19 = var_Items13->Add(L"S3",TNoParam(),TNoParam());
var_Item19->ItemHeight = 88;
var_Item19->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSpin | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item19->set_EditValue(TVariant(75));
var_Items1->Add(L"",TVariant(0),TVariant(0))->Padding = L"8,0,0,0";
ToolBar1->PopupFlatAppearance = false;
Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_background.ebn"));
var_Appearance->Add(2,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_groupt.ebn"));
var_Appearance->Add(12,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_hot.ebn"));
var_Appearance->Add(14,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_select.ebn"));
var_Appearance->Add(17,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_tab.ebn"));
var_Appearance->Add(18,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_tabhot.ebn"));
var_Appearance->Add(32,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_check0.ebn"));
var_Appearance->Add(33,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_check1.ebn"));
var_Appearance->Add(34,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_buttonu.ebn"));
var_Appearance->Add(35,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSFlat-Ribbon/msfr_buttond.ebn"));
ToolBar1->Appearance = Extoolbarlib_tlb::ToolBarAppearanceEnum(0x1000000);
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exToolTipAppearance] = ToolBar1->Appearance;
ToolBar1->SelBackColor = 0xe000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuHotBackColor] = 0xc000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuSelHotBackColor] = 0x23000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum(0x2)] = 0x22000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum(0x3)] = 0x23000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exCheckBoxState0] = 0x20000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exCheckBoxState1] = 0x21000000;
ToolBar1->Refresh();
|
187
|
Microsoft Paint - Ribbon Like

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->ToString = L"[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])";
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->get_Item(TVariant(0))->Items;
var_Items1->Add(L"",TVariant(0),TVariant(0))->Padding = L"8,0,0,0";
Extoolbarlib_tlb::IItemPtr var_Item3 = var_Items1->Add(L"New Page",TNoParam(),TNoParam());
var_Item3->ToString = TVariant(String("[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
var_Item3->ID = 200;
var_Item3->Caption = L"Page1";
var_Item3->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
Extoolbarlib_tlb::IItemPtr var_Item = var_Item3->Items->get_Item(TVariant(0));
var_Item = var_Item->Items->Add(L"New Group",TNoParam(),TNoParam());
var_Item->ToString = L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()";
var_Item->Caption = L"<b><font ;14>A";
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item->Items;
var_Items2->BackgroundExt = L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]";
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items2->Add(L"",TVariant(2),TNoParam());
var_Item1->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupEqualWidth | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item1->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items3 = var_Item1->Items;
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items3->Add(L"R1",TNoParam(),TNoParam());
var_Item2->RadioGroup = 100;
var_Item2->Radio = true;
var_Item2->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item2->Checked = false;
Extoolbarlib_tlb::IItemPtr var_Item4 = var_Items3->Add(L"R2",TNoParam(),TNoParam());
var_Item4->RadioGroup = 100;
var_Item4->Radio = true;
var_Item4->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item4->Checked = true;
Extoolbarlib_tlb::IItemPtr var_Item5 = var_Items3->Add(L"R3",TNoParam(),TNoParam());
var_Item5->RadioGroup = 100;
var_Item5->Radio = true;
var_Item5->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item5->Checked = false;
var_Item1 = var_Item->Items->Add(L"New Group",TNoParam(),TNoParam());
var_Item1->ToString = L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()";
var_Item1->Caption = L"<b><font ;14>B";
Extoolbarlib_tlb::IItemsPtr var_Items4 = var_Item1->Items;
var_Items4->BackgroundExt = L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]";
Extoolbarlib_tlb::IItemPtr var_Item6 = var_Items4->Add(L"",TVariant(2),TNoParam());
var_Item6->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupEqualHeight | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item6->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items5 = var_Item6->Items;
Extoolbarlib_tlb::IItemPtr var_Item7 = var_Items5->Add(L"C1",TNoParam(),TNoParam());
var_Item7->Check = true;
var_Item7->Checked = true;
Extoolbarlib_tlb::IItemPtr var_Item8 = var_Items5->Add(L"C2",TNoParam(),TNoParam());
var_Item8->Check = true;
var_Item8->Checked = false;
Extoolbarlib_tlb::IItemPtr var_Item9 = var_Items5->Add(L"C3",TNoParam(),TNoParam());
var_Item9->Check = true;
var_Item9->Checked = true;
var_Item->Items->Add(L"",TVariant(0),TVariant(0))->Padding = L"4,0,0,0";
var_Item2 = var_Item->Items->Add(L"New Group",TNoParam(),TNoParam());
var_Item2->ToString = L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()";
var_Item2->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items6 = var_Item2->Items;
var_Items6->BackgroundExt = L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]";
Extoolbarlib_tlb::IItemPtr var_Item10 = var_Items6->Add(L"",TVariant(0),TNoParam());
var_Item10->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSlider;
var_Item10->ItemHeight = 76;
var_Item10->EditBorder = Extoolbarlib_tlb::EditBorderEnum::exEditBorderNone;
var_Item10->set_EditValue(TVariant(25));
Extoolbarlib_tlb::IItemPtr var_Item11 = var_Items6->Add(L"",TVariant(2),TNoParam());
var_Item11->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item11->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items7 = var_Item11->Items;
Extoolbarlib_tlb::IItemPtr var_Item12 = var_Items7->Add(L"",TVariant(2),TNoParam());
var_Item12->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items8 = var_Item12->Items;
Extoolbarlib_tlb::IItemPtr var_Item13 = var_Items8->Add(L"Button1",TVariant(2),TNoParam());
var_Item13->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items9 = var_Item13->Items;
var_Items9->Add(L"Item 1",TNoParam(),TNoParam());
var_Items9->Add(L"Item 2",TNoParam(),TNoParam());
var_Items9->Add(L"Item 3",TNoParam(),TNoParam());
var_Items8->Add(L"",TVariant(0),TVariant(0))->Padding = L"4,0,0,0";
Extoolbarlib_tlb::IItemPtr var_Item14 = var_Items8->Add(L"Button2",TVariant(2),TNoParam());
var_Item14->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items10 = var_Item14->Items;
var_Items10->Add(L"Item 4",TNoParam(),TNoParam());
var_Items10->Add(L"Item 5",TNoParam(),TNoParam());
var_Items10->Add(L"Item 6",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item15 = var_Items7->Add(L"Popup",TVariant(2),TNoParam());
var_Item15->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
Extoolbarlib_tlb::IItemsPtr var_Items11 = var_Item15->Items;
var_Items11->Add(L"Item 7",TNoParam(),TNoParam())->Check = true;
var_Items11->Add(L"Item 8",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemsPtr var_Items12 = var_Items11->Add(L"Item 9",TVariant(2),TNoParam())->Items;
var_Items12->Add(L"Item 10",TNoParam(),TNoParam());
var_Items12->Add(L"Item 11",TNoParam(),TNoParam());
var_Items12->Add(L"Item 12",TNoParam(),TNoParam());
var_Item4 = var_Items1->Add(L"New Page",TNoParam(),TNoParam());
var_Item4->ToString = TVariant(String("[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
var_Item4->ID = 300;
var_Item4->Caption = L"Page2";
var_Item4->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
Extoolbarlib_tlb::IItemPtr var_Item16 = var_Item4->Items->get_Item(TVariant(0));
Extoolbarlib_tlb::IItemsPtr var_Items13 = var_Item16->Items;
Extoolbarlib_tlb::IItemPtr var_Item17 = var_Items13->Add(L"S1",TNoParam(),TNoParam());
var_Item17->ItemHeight = 88;
var_Item17->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSpin | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item17->set_EditValue(TVariant(25));
Extoolbarlib_tlb::IItemPtr var_Item18 = var_Items13->Add(L"S2",TNoParam(),TNoParam());
var_Item18->ItemHeight = 88;
var_Item18->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSpin | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item18->set_EditValue(TVariant(50));
Extoolbarlib_tlb::IItemPtr var_Item19 = var_Items13->Add(L"S3",TNoParam(),TNoParam());
var_Item19->ItemHeight = 88;
var_Item19->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSpin | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item19->set_EditValue(TVariant(75));
var_Items1->Add(L"",TVariant(0),TVariant(0))->Padding = L"8,0,0,0";
ToolBar1->PopupFlatAppearance = false;
Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_background.ebn"));
var_Appearance->Add(2,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_groupt.ebn"));
var_Appearance->Add(3,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_groupo.ebn"));
var_Appearance->Add(4,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_grouphot.ebn"));
var_Appearance->Add(5,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_frameh.ebn"));
var_Appearance->Add(6,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehs.ebn"));
var_Appearance->Add(7,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehi.ebn"));
var_Appearance->Add(8,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framehe.ebn"));
var_Appearance->Add(9,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framevs.ebn"));
var_Appearance->Add(10,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_framevi.ebn"));
var_Appearance->Add(11,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_frameve.ebn"));
var_Appearance->Add(12,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_select.ebn"));
var_Appearance->Add(13,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_bordert.ebn"));
var_Appearance->Add(14,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_buttond.ebn"));
var_Appearance->Add(15,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_buttonu.ebn"));
var_Appearance->Add(16,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tab.ebn"));
var_Appearance->Add(17,TVariant("CP:16 0 0 0 1"));
var_Appearance->Add(18,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tabhot.ebn"));
var_Appearance->Add(19,TVariant("C:/Program Files/Exontrol/ExToolBar/Sample/EBN/MSPaint-Ribbon/mspr_tabselhot.ebn"));
var_Appearance->Add(20,TVariant("CP:19 0 0 0 1"));
ToolBar1->LocalAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
ToolBar1->Appearance = Extoolbarlib_tlb::ToolBarAppearanceEnum(0x1000000);
ToolBar1->ForeColor = RGB(21,66,139);
ToolBar1->SelBackColor = 0xe000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exToolTipAppearance] = ToolBar1->Appearance;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum(0x2)] = 0xd000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameSingle] = 0x5000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameHStart] = 0x6000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameHIntermediate] = 0x7000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameHEnd] = 0x8000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameVStart] = 0x9000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameVIntermediate] = 0xa000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameVEnd] = 0xb000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuHotBackColor] = 0xc000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuSelHotBackColor] = 0xf000000;
ToolBar1->Refresh();
|
186
|
Microsoft Office - Ribbon Like

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->ToString = L"[id=0][group=0x03](),[id=-99][bg=0x01000000][group=0x03][itemspad=4,4,4,4]([id=9000])";
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->get_Item(TVariant(0))->Items;
var_Items1->Add(L"",TVariant(0),TVariant(0))->Padding = L"8,0,0,0";
Extoolbarlib_tlb::IItemPtr var_Item3 = var_Items1->Add(L"New Page",TNoParam(),TNoParam());
var_Item3->ToString = TVariant(String("[id=0][typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
var_Item3->ID = 200;
var_Item3->Caption = L"Page1";
var_Item3->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
Extoolbarlib_tlb::IItemPtr var_Item = var_Item3->Items->get_Item(TVariant(0));
var_Item = var_Item->Items->Add(L"New Group",TNoParam(),TNoParam());
var_Item->ToString = L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()";
var_Item->Caption = L"<b><font ;14>A";
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item->Items;
var_Items2->BackgroundExt = L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Horizontal`,align=0x11]";
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items2->Add(L"",TVariant(2),TNoParam());
var_Item1->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupEqualWidth | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item1->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items3 = var_Item1->Items;
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items3->Add(L"R1",TNoParam(),TNoParam());
var_Item2->RadioGroup = 100;
var_Item2->Radio = true;
var_Item2->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item2->Checked = false;
Extoolbarlib_tlb::IItemPtr var_Item4 = var_Items3->Add(L"R2",TNoParam(),TNoParam());
var_Item4->RadioGroup = 100;
var_Item4->Radio = true;
var_Item4->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item4->Checked = true;
Extoolbarlib_tlb::IItemPtr var_Item5 = var_Items3->Add(L"R3",TNoParam(),TNoParam());
var_Item5->RadioGroup = 100;
var_Item5->Radio = true;
var_Item5->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item5->Checked = false;
var_Item1 = var_Item->Items->Add(L"New Group",TNoParam(),TNoParam());
var_Item1->ToString = L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()";
var_Item1->Caption = L"<b><font ;14>B";
Extoolbarlib_tlb::IItemsPtr var_Items4 = var_Item1->Items;
var_Items4->BackgroundExt = L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Vertical`,align=0x11]";
Extoolbarlib_tlb::IItemPtr var_Item6 = var_Items4->Add(L"",TVariant(2),TNoParam());
var_Item6->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupEqualHeight | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item6->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items5 = var_Item6->Items;
Extoolbarlib_tlb::IItemPtr var_Item7 = var_Items5->Add(L"C1",TNoParam(),TNoParam());
var_Item7->Check = true;
var_Item7->Checked = true;
Extoolbarlib_tlb::IItemPtr var_Item8 = var_Items5->Add(L"C2",TNoParam(),TNoParam());
var_Item8->Check = true;
var_Item8->Checked = false;
Extoolbarlib_tlb::IItemPtr var_Item9 = var_Items5->Add(L"C3",TNoParam(),TNoParam());
var_Item9->Check = true;
var_Item9->Checked = true;
var_Item->Items->Add(L"",TVariant(0),TVariant(0))->Padding = L"4,0,0,0";
var_Item2 = var_Item->Items->Add(L"New Group",TNoParam(),TNoParam());
var_Item2->ToString = L"[id=0][group=0x03][itemspad=4,4,4,18][itemsbg=0x02000000][itemsbghot=0x04000000]()";
var_Item2->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items6 = var_Item2->Items;
var_Items6->BackgroundExt = L"bottom[16,text=`<fgcolor A0A0A0><font ;8>Mixt`,align=0x11]";
Extoolbarlib_tlb::IItemPtr var_Item10 = var_Items6->Add(L"",TVariant(0),TNoParam());
var_Item10->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSlider;
var_Item10->ItemHeight = 76;
var_Item10->EditBorder = Extoolbarlib_tlb::EditBorderEnum::exEditBorderNone;
var_Item10->set_EditValue(TVariant(25));
Extoolbarlib_tlb::IItemPtr var_Item11 = var_Items6->Add(L"",TVariant(2),TNoParam());
var_Item11->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item11->Caption = L"";
Extoolbarlib_tlb::IItemsPtr var_Items7 = var_Item11->Items;
Extoolbarlib_tlb::IItemPtr var_Item12 = var_Items7->Add(L"",TVariant(2),TNoParam());
var_Item12->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items8 = var_Item12->Items;
Extoolbarlib_tlb::IItemPtr var_Item13 = var_Items8->Add(L"Button1",TVariant(2),TNoParam());
var_Item13->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items9 = var_Item13->Items;
var_Items9->Add(L"Item 1",TNoParam(),TNoParam());
var_Items9->Add(L"Item 2",TNoParam(),TNoParam());
var_Items9->Add(L"Item 3",TNoParam(),TNoParam());
var_Items8->Add(L"",TVariant(0),TVariant(0))->Padding = L"4,0,0,0";
Extoolbarlib_tlb::IItemPtr var_Item14 = var_Items8->Add(L"Button2",TVariant(2),TNoParam());
var_Item14->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items10 = var_Item14->Items;
var_Items10->Add(L"Item 4",TNoParam(),TNoParam());
var_Items10->Add(L"Item 5",TNoParam(),TNoParam());
var_Items10->Add(L"Item 6",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item15 = var_Items7->Add(L"Popup",TVariant(2),TNoParam());
var_Item15->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
Extoolbarlib_tlb::IItemsPtr var_Items11 = var_Item15->Items;
var_Items11->Add(L"Item 7",TNoParam(),TNoParam())->Check = true;
var_Items11->Add(L"Item 8",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemsPtr var_Items12 = var_Items11->Add(L"Item 9",TVariant(2),TNoParam())->Items;
var_Items12->Add(L"Item 10",TNoParam(),TNoParam());
var_Items12->Add(L"Item 11",TNoParam(),TNoParam());
var_Items12->Add(L"Item 12",TNoParam(),TNoParam());
var_Item4 = var_Items1->Add(L"New Page",TNoParam(),TNoParam());
var_Item4->ToString = TVariant(String("[id=0][typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=0x12000000][bgsel=0x11000000][bgselhot=0x14000000][group=0x03][tab=9000][p") +
"ad=4,0,4,0][popupoffset=-4,-1]([id=0][group=0x03]([id=0][group=0x03]))");
var_Item4->ID = 300;
var_Item4->Caption = L"Page2";
var_Item4->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
Extoolbarlib_tlb::IItemPtr var_Item16 = var_Item4->Items->get_Item(TVariant(0));
Extoolbarlib_tlb::IItemsPtr var_Items13 = var_Item16->Items;
Extoolbarlib_tlb::IItemPtr var_Item17 = var_Items13->Add(L"S1",TNoParam(),TNoParam());
var_Item17->ItemHeight = 88;
var_Item17->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSpin | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item17->set_EditValue(TVariant(25));
Extoolbarlib_tlb::IItemPtr var_Item18 = var_Items13->Add(L"S2",TNoParam(),TNoParam());
var_Item18->ItemHeight = 88;
var_Item18->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSpin | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item18->set_EditValue(TVariant(50));
Extoolbarlib_tlb::IItemPtr var_Item19 = var_Items13->Add(L"S3",TNoParam(),TNoParam());
var_Item19->ItemHeight = 88;
var_Item19->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditVertical | Extoolbarlib_tlb::AllowEditEnum::exItemEditSpin | Extoolbarlib_tlb::AllowEditEnum::exItemEditProgress;
var_Item19->set_EditValue(TVariant(75));
var_Items1->Add(L"",TVariant(0),TVariant(0))->Padding = L"8,0,0,0";
ToolBar1->PopupFlatAppearance = false;
Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_background.ebn"));
var_Appearance->Add(2,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_groupt.ebn"));
var_Appearance->Add(3,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_groupo.ebn"));
var_Appearance->Add(4,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_grouphot.ebn"));
var_Appearance->Add(5,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_frameh.ebn"));
var_Appearance->Add(6,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_framehs.ebn"));
var_Appearance->Add(7,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_framehi.ebn"));
var_Appearance->Add(8,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_framehe.ebn"));
var_Appearance->Add(9,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_framevs.ebn"));
var_Appearance->Add(10,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_framevi.ebn"));
var_Appearance->Add(11,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_frameve.ebn"));
var_Appearance->Add(12,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_select.ebn"));
var_Appearance->Add(13,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_bordert.ebn"));
var_Appearance->Add(14,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_buttond.ebn"));
var_Appearance->Add(15,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_buttonu.ebn"));
var_Appearance->Add(16,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_tab.ebn"));
var_Appearance->Add(17,TVariant("CP:16 0 0 0 1"));
var_Appearance->Add(18,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_tabhot.ebn"));
var_Appearance->Add(19,TVariant("C:\\Program Files\\Exontrol\\ExToolBar\\Sample\\EBN\\MSOffice-Ribbon\\msor_tabselhot.ebn"));
var_Appearance->Add(20,TVariant("CP:19 0 0 0 1"));
ToolBar1->ForeColor = RGB(21,66,139);
ToolBar1->SelBackColor = 0xe000000;
ToolBar1->LocalAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
ToolBar1->Appearance = Extoolbarlib_tlb::ToolBarAppearanceEnum(0x1000000);
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exToolTipAppearance] = ToolBar1->Appearance;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum(0x2)] = 0xd000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameSingle] = 0x5000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameHStart] = 0x6000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameHIntermediate] = 0x7000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameHEnd] = 0x8000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameVStart] = 0x9000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameVIntermediate] = 0xa000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameVEnd] = 0xb000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuHotBackColor] = 0xc000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuSelHotBackColor] = 0xf000000;
ToolBar1->Refresh();
|
185
|
How I can assign buttons to a tab

ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuSelBorderColor] = RGB(240,240,240);
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->ToString = TVariant(String("[id=0][group=0x0103][itemspad=4,4,4,4]([id=-10][group=0x03](),[id=-99][bg=RGB(240,240,240)][group=0x03][itemspad=4,4,4,4]([id=-") +
"100]))");
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->get_Item(TVariant(-10))->Items;
var_Items1->Add(L"",TVariant(0),TVariant(0))->Padding = L"8,0,0,0";
Extoolbarlib_tlb::IItemPtr var_Item = var_Items1->Add(L"New Page",TNoParam(),TNoParam());
var_Item->ToString = TVariant(String("[typ=2][chk=1][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][") +
"group=0x03][tab=-100][pad=2,0,2,0][popupalign=0x01]([id=0][group=0x03]([]))");
var_Item->Caption = L"Page<off -5><font ;5><b>1</b></font></off>";
var_Item->ID = -1000;
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item->Items->get_Item(TVariant(0))->Items;
var_Items2->Add(L"Button 1",TNoParam(),TNoParam())->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButton;
var_Items2->Add(L"Button 2",TNoParam(),TNoParam())->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButton;
var_Items2->Add(L"Button 3",TNoParam(),TNoParam())->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButton;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"New Page",TNoParam(),TNoParam());
var_Item1->ToString = TVariant(String("[typ=2][chk=0][spchk=-1][show=1][grp=10][bghot=RGB(255,255,255)][bgsel=RGB(240,240,240)][bgselhot=RGB(240,240,240)][height=16][") +
"group=0x03][tab=-100][pad=2,0,2,0][popupalign=0x01]([id=0][group=0x03]([]))");
var_Item1->Caption = L"Page<off -5><font ;5><b>2</b></font></off>";
var_Item1->ID = -1001;
Extoolbarlib_tlb::IItemsPtr var_Items3 = var_Item1->Items->get_Item(TVariant(0))->Items;
var_Items3->Add(L"Button 3",TNoParam(),TNoParam())->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButton;
var_Items3->Add(L"Button 4",TNoParam(),TNoParam())->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButton;
var_Items1->Add(L"",TVariant(0),TVariant(0))->Padding = L"8,0,0,0";
ToolBar1->Refresh();
|
184
|
How can I hide an item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item 1",TNoParam(),TNoParam())->Visible = false;
var_Items->Add(L"Item 2",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
183
|
How do I quickly load items into the control

ToolBar1->ToString = L"Check 1[chk],Check 2[chk=1]";
|
182
|
Are there any functions to get the size/width/height of the control so all items fit the control's client area

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item 1",TNoParam(),TNoParam());
var_Items->Add(L"Item 2",TNoParam(),TNoParam());
ToolBar1->Refresh();
OutputDebugString( PChar(ToolBar1->RequiredWidth) );
OutputDebugString( PChar(ToolBar1->RequiredHeight) );
|
181
|
How do I get the item giving its caption

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item 1",TNoParam(),TNoParam())->ID = 1000;
var_Items->Add(L"Item 2",TNoParam(),TNoParam())->ID = 1001;
ToolBar1->Item[TVariant("Item 1")]->Bold = true;
ToolBar1->Refresh();
|
180
|
How do I get the item giving its identifier

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item 1",TNoParam(),TNoParam())->ID = 1000;
var_Items->Add(L"Item 2",TNoParam(),TNoParam())->ID = 1001;
ToolBar1->Item[TVariant(1000)]->Bold = true;
ToolBar1->Refresh();
|
179
|
Can I change the cursor where it hovers the item

ToolBar1->set_Cursor(TVariant("exCross"));
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item 1",TNoParam(),TNoParam());
var_Items->Add(L"Item 2",TNoParam(),TNoParam())->set_Cursor(TVariant("exNoDrop"));
ToolBar1->Refresh();
|
178
|
I am using radio-buttons, the question is it possible to uncheck the radio-buttons, so no button is pressed in the group

ToolBar1->AllowToggleRadio = true;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Radio 1",TNoParam(),TVariant(1000));
var_Item->Radio = true;
var_Item->RadioGroup = 100;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items->Add(L"Radio 2",TNoParam(),TVariant(1001));
var_Item1->Radio = true;
var_Item1->RadioGroup = 100;
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items->Add(L"Radio 2",TNoParam(),TVariant(1003));
var_Item2->Radio = true;
var_Item2->RadioGroup = 100;
ToolBar1->Refresh();
|
177
|
Is it possible to display the item's identifiers

ToolBar1->Debug = true;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item 1",TNoParam(),TNoParam())->ID = 10001;
var_Items->Add(L"Item 2",TNoParam(),TNoParam())->ID = 10002;
ToolBar1->Refresh();
|
176
|
How do I disable showing the tooltip for all control (method 2)

ToolBar1->AllowToolTip = false;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
ToolBar1->Refresh();
|
175
|
How can I lock the control, so no events occur, but no shown in gray as Enabled do

// SelectItem event - Occurs when the user selects the item.
void __fastcall TForm1::ToolBar1SelectItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
OutputDebugString( L"SelectItem should not be fired while locked" );
}
ToolBar1->Locked = true;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Disabled",TNoParam(),TNoParam())->Enabled = false;
var_Items->Add(L"Item 2",TNoParam(),TNoParam());
var_Items->Add(L"Item 3",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
174
|
How can I disable the control

ToolBar1->Enabled = false;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Disabled",TNoParam(),TNoParam())->Enabled = false;
var_Items->Add(L"Item 2",TNoParam(),TNoParam());
var_Items->Add(L"Item 3",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
173
|
How can I specify a different border/visual appearance for drop down portion of the popup menu (ebn)

ToolBar1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
ToolBar1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum(0x1000000);
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->Add(L"Popup 1",TVariant(2),TNoParam())->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 2",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 3",TNoParam(),TNoParam())->Check = true;
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Items->Add(L"Popup 2",TVariant(2),TNoParam())->Items;
var_Items2->Add(L"Item 4",TNoParam(),TNoParam())->Check = true;
var_Items2->Add(L"Item 5",TNoParam(),TNoParam())->Check = true;
var_Items2->Add(L"Item 6",TNoParam(),TNoParam())->Check = true;
ToolBar1->Refresh();
|
172
|
How can I specify a different border for drop down portion of the popup menu

ToolBar1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->Add(L"Popup 1",TVariant(2),TNoParam())->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 2",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 3",TNoParam(),TNoParam())->Check = true;
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Items->Add(L"Popup 2",TVariant(2),TNoParam())->Items;
var_Items2->Add(L"Item 4",TNoParam(),TNoParam())->Check = true;
var_Items2->Add(L"Item 5",TNoParam(),TNoParam())->Check = true;
var_Items2->Add(L"Item 6",TNoParam(),TNoParam())->Check = true;
ToolBar1->Refresh();
|
171
|
How can I specify a different border/visual appearance for drop down portion of the select buttons/combobox (ebn)

ToolBar1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
ToolBar1->LocalAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum(0x1000000);
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Button",TVariant(2),TNoParam());
var_Item1->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item1->Items;
var_Items2->Add(L"Item 1",TNoParam(),TNoParam());
var_Items2->Add(L"Item 2",TNoParam(),TNoParam());
var_Items2->Add(L"Item 3",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items1->Add(L"Button",TVariant(2),TNoParam());
var_Item2->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items3 = var_Item2->Items;
var_Items3->Add(L"Item 4",TNoParam(),TNoParam());
var_Items3->Add(L"Item 5",TNoParam(),TNoParam());
var_Items3->Add(L"Item 6",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
170
|
How can I specify a different border for drop down portion of the select buttons/combobox

ToolBar1->LocalAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Button",TVariant(2),TNoParam());
var_Item1->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item1->Items;
var_Items2->Add(L"Item 1",TNoParam(),TNoParam());
var_Items2->Add(L"Item 2",TNoParam(),TNoParam());
var_Items2->Add(L"Item 3",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items1->Add(L"Button",TVariant(2),TNoParam());
var_Item2->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items3 = var_Item2->Items;
var_Items3->Add(L"Item 4",TNoParam(),TNoParam());
var_Items3->Add(L"Item 5",TNoParam(),TNoParam());
var_Items3->Add(L"Item 6",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
169
|
How can I change the visual appearance for the entire control

ToolBar1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
ToolBar1->Appearance = Extoolbarlib_tlb::ToolBarAppearanceEnum(0x1000000);
ToolBar1->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemCheckHighlight;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Padding = L"4,4,4,4";
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Radio 1",TNoParam(),TNoParam());
var_Item->Radio = true;
var_Item->Checked = true;
var_Items->Add(L"Radio 2",TNoParam(),TNoParam())->Radio = true;
var_Items->Add(L"Radio 3",TNoParam(),TNoParam())->Radio = true;
ToolBar1->Refresh();
|
168
|
How can I show a border arround the control
ToolBar1->Appearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::FlatBorder;
ToolBar1->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemCheckHighlight;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Padding = L"4,4,4,4";
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Check 1",TNoParam(),TNoParam());
var_Item->Checked = true;
var_Item->Check = true;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items->Add(L"Check 2",TNoParam(),TNoParam());
var_Item1->Check = true;
ToolBar1->Refresh();
|
167
|
Is it possible to change the item's background color when check/uncheck the item

ToolBar1->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemCheckHighlight;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Padding = L"4,4,4,4";
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Check 1",TNoParam(),TNoParam());
var_Item->Checked = true;
var_Item->Check = true;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items->Add(L"Check 2",TNoParam(),TNoParam());
var_Item1->Check = true;
ToolBar1->Refresh();
|
166
|
How can I change the colors for hot/hover items

ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuHotBackColor] = RGB(0,0,1);
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuHotForeColor] = RGB(255,255,255);
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuSelHotBackColor] = RGB(128,128,128);
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuSelHotForeColor] = RGB(255,255,255);
ToolBar1->SelBackColor = RGB(128,128,128);
ToolBar1->SelForeColor = RGB(255,255,255);
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuSelBorderColor] = RGB(128,128,128);
ToolBar1->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemCheckHighlight;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Padding = L"4,4,4,4";
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"[group=3](Item 1,Item 2)";
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Check 1",TNoParam(),TNoParam());
var_Item->Checked = true;
var_Item->Check = true;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items->Add(L"Check 2",TNoParam(),TNoParam());
var_Item1->Check = true;
ToolBar1->Refresh();
|
165
|
How do I change the visual appearance of the groups (vertical)

Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
var_Appearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
var_Appearance->Add(3,TVariant("c:\\exontrol\\images\\hot.ebn"));
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameSingle] = 0x1000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameVStart] = 0x1000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameVIntermediate] = 0x2000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameVEnd] = 0x3000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameSolid] = RGB(255,0,0);
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Vertical",TVariant(2),TNoParam());
var_Item1->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
var_Item1->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item1->Items;
var_Items2->Add(L"Item 1",TNoParam(),TNoParam());
var_Items2->Add(L"Item 2",TNoParam(),TNoParam());
var_Items2->Add(L"Item 3",TNoParam(),TNoParam());
var_Items2->Add(L"Item 4",TNoParam(),TNoParam());
var_Items2->Add(L"Item 5",TNoParam(),TNoParam());
var_Items1->Add(L"",TNoParam(),TNoParam())->CaptionWidth = 12;
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items1->Add(L"Vertical",TVariant(2),TNoParam());
var_Item2->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
var_Item2->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupFrameThickBox | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupFrameSolidBox | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items3 = var_Item2->Items;
var_Items3->Add(L"Item 1",TNoParam(),TNoParam());
var_Items3->Add(L"Item 2",TNoParam(),TNoParam());
var_Items3->Add(L"Item 3",TNoParam(),TNoParam());
var_Items3->Add(L"Item 4",TNoParam(),TNoParam());
var_Items3->Add(L"Item 5",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
164
|
How do I change the visual appearance of the groups (horizontal)

Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
var_Appearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
var_Appearance->Add(3,TVariant("c:\\exontrol\\images\\hot.ebn"));
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameSingle] = 0x1000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameHStart] = 0x1000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameHIntermediate] = 0x2000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameHEnd] = 0x3000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exGroupPopupFrameSolid] = RGB(255,0,0);
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Horizontal Group",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items1->Add(L"Item 4",TNoParam(),TNoParam());
var_Items1->Add(L"Item 5",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Horizontal Group[group=193](Item 1,Item 2,Item 3,Item 4,Item 5)";
ToolBar1->Refresh();
|
163
|
How can I change the visual appearance of the separator item

ToolBar1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuSeparatorItem] = 0x1000000;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->CaptionWidth = 128;
var_Items->Add(L"",TVariant(1),TNoParam());
var_Items->Add(L"Item",TNoParam(),TNoParam())->CaptionWidth = 128;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"<font ;5>separator[sep]";
ToolBar1->Refresh();
|
162
|
How can I change the visual appearance of the drop down of the control (normal.2)

Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
var_Appearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
ToolBar1->PopupFlatImageWidth = 0;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->Add(L"Popup",TVariant(2),TNoParam())->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 2",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 3",TNoParam(),TNoParam())->Check = true;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum(0x1000000);
ToolBar1->Refresh();
|
161
|
How can I change the visual appearance of the drop down of the control (normal.1)

Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
var_Appearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
ToolBar1->PopupFlatAppearance = false;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->Add(L"Popup",TVariant(2),TNoParam())->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 2",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 3",TNoParam(),TNoParam())->Check = true;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum(0x1000000);
ToolBar1->Refresh();
|
160
|
How can I change the visual appearance of the drop down of the control (flat)

Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
var_Appearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
ToolBar1->PopupFlatBackColor = 0x2000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuFlatLineColor] = ToolBar1->PopupFlatBackColor;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->Add(L"Popup",TVariant(2),TNoParam())->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 2",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 3",TNoParam(),TNoParam())->Check = true;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum(0x1000000);
ToolBar1->Refresh();
|
159
|
How can I change the visual appearance of the flat portion of the drop down of the control

ToolBar1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
ToolBar1->PopupFlatBackColor = 0x1000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuFlatLineColor] = ToolBar1->PopupFlatBackColor;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->Add(L"Popup",TVariant(2),TNoParam())->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 2",TNoParam(),TNoParam())->Check = true;
var_Items1->Add(L"Item 3",TNoParam(),TNoParam())->Check = true;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
ToolBar1->Refresh();
|
158
|
How can I change the visual appearance of the radio-buttons to be displayed in the toolbar control (ebn)

Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
var_Appearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exRadioButtonState0] = 0x1000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exRadioButtonState1] = 0x2000000;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Radio 1",TNoParam(),TVariant(1000));
var_Item1->Radio = true;
var_Item1->RadioGroup = 100;
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items1->Add(L"Radio 2",TNoParam(),TVariant(1001));
var_Item2->Radio = true;
var_Item2->RadioGroup = 100;
Extoolbarlib_tlb::IItemPtr var_Item3 = var_Items1->Add(L"Radio 2",TNoParam(),TVariant(1003));
var_Item3->Radio = true;
var_Item3->RadioGroup = 100;
var_Items1->get_Item(TVariant(1000))->Checked = true;
ToolBar1->Refresh();
|
157
|
How can I change the visual appearance of the check-boxes to be displayed in the toolbar control (ebn)

Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
var_Appearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exCheckBoxState0] = 0x1000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exCheckBoxState1] = 0x2000000;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Check 1",TNoParam(),TNoParam());
var_Item1->Check = true;
var_Item1->Checked = true;
var_Items1->Add(L"Check 2",TNoParam(),TNoParam())->Check = true;
ToolBar1->Refresh();
|
156
|
How can I change the visual appearance of the tooltips to be displayed in the toolbar control (ebn)

Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
var_Appearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
ToolBar1->ToolTipDelay = 1;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exToolTipAppearance] = 0x1000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exToolTipForeColor] = RGB(255,0,0);
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
ToolBar1->Refresh();
|
155
|
Is it possible to change the visual appearance of the buttons to be displayed in the toolbar control (ebn)

Extoolbarlib_tlb::IAppearancePtr var_Appearance = ToolBar1->VisualAppearance;
var_Appearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
var_Appearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum(0x2)] = 0x1000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum(0x3)] = 0x2000000;
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuSeparatorSelectButton] = RGB(255,0,0);
ToolBar1->Background[Extoolbarlib_tlb::BackgroundPartEnum::exMenuSeparatorSelectButtonBottom] = RGB(0,0,255);
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Padding = L"4,4,4,4";
var_Items->Add(L"Button",TNoParam(),TNoParam())->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButton;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TNoParam(),TNoParam());
var_Item->Enabled = false;
var_Item->ItemHeight = 4;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items->Add(L"Button",TVariant(2),TNoParam());
var_Item1->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item1->Items;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items->Add(L"",TNoParam(),TNoParam());
var_Item2->Enabled = false;
var_Item2->ItemHeight = 4;
Extoolbarlib_tlb::IItemPtr var_Item3 = var_Items->Add(L"Button",TVariant(2),TNoParam());
var_Item3->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButton | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item3->Items;
var_Items2->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
var_Items2->Add(L"Item 1",TNoParam(),TNoParam());
var_Items2->Add(L"Item 2",TNoParam(),TNoParam());
var_Items2->Add(L"Item 3",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
154
|
I've seen that the width of the tooltip is variable. Can I make it larger

ToolBar1->ToolTipWidth = 328;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
ToolBar1->Refresh();
|
153
|
How do I disable showing the tooltip for all control (method 1)

ToolBar1->ToolTipDelay = 0;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
ToolBar1->Refresh();
|
152
|
How do I let the tooltip being displayed longer

ToolBar1->ToolTipPopDelay = 10000;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
ToolBar1->Refresh();
|
151
|
How do I show the tooltip quicker

ToolBar1->ToolTipDelay = 1;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it";
ToolBar1->Refresh();
|
150
|
How can I get the version of the control I am running

OutputDebugString( ToolBar1->Version );
|
149
|
How can I align the picture on the control's background

ToolBar1->Picture = (IPictureDisp*)(ToolBar1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\card.png`)"));
ToolBar1->PictureDisplay = Extoolbarlib_tlb::PictureDisplayEnum::UpperRight;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam());
var_Items->Add(L"Item",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
148
|
Is it possible to place a picture on the control's background

ToolBar1->Picture = (IPictureDisp*)(ToolBar1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\card.png`)"));
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam());
var_Items->Add(L"Item",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
147
|
How can I display the item using a different font/size

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"",TNoParam(),TNoParam())->Caption = L"<font ;14>This is a bit of text";
var_Items->Add(L"<font ;6>This is a bit of text",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->Caption = L"<font Times New Roman;22>This is a bit of text</font>. Default";
ToolBar1->Refresh();
|
146
|
How can I use the Event event, available for /COM version

// Event event - Notifies the application once the control fires an event.
void __fastcall TForm1::ToolBar1Event(TObject *Sender,long EventID)
{
OutputDebugString( L"Event" );
OutputDebugString( PChar(ToolBar1->EventParam[-2]) );
}
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Check",TNoParam(),TNoParam())->Check = true;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Slider",TNoParam(),TNoParam());
var_Item->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditSlider;
var_Item->EditWidth = 128;
var_Item->EditBorder = Extoolbarlib_tlb::EditBorderEnum::exEditBorderNone;
var_Item->set_EditValue(TVariant(25));
ToolBar1->Refresh();
|
145
|
Is it possible to get notified once the user edits the field, or change the slider value

// EditChange event - Occurs when the user alters the item's text box field.
void __fastcall TForm1::ToolBar1EditChange(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
OutputDebugString( L"EditChange event on Itm object" );
}
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Item",TNoParam(),TNoParam());
var_Item->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditSlider;
var_Item->EditWidth = 128;
var_Item->EditBorder = Extoolbarlib_tlb::EditBorderEnum::exEditBorderNone;
var_Item->set_EditValue(TVariant(25));
ToolBar1->Refresh();
|
144
|
How do I get notified once I uncheck an item

// UncheckItem event - Occurs when the user unchecks the item.
void __fastcall TForm1::ToolBar1UncheckItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
OutputDebugString( L"UncheckItem event on Itm object" );
}
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Check = true;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Check = true;
ToolBar1->Refresh();
|
143
|
How do I get notified once I check an item

// CheckItem event - Occurs when the user checks the item.
void __fastcall TForm1::ToolBar1CheckItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
OutputDebugString( L"CheckItem event on Itm object" );
}
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Check = true;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Check = true;
ToolBar1->Refresh();
|
142
|
How do I get notified once I click/select an item

// SelectItem event - Occurs when the user selects the item.
void __fastcall TForm1::ToolBar1SelectItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
OutputDebugString( L"SelectItem event on Itm object" );
}
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam());
var_Items->Add(L"Item",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
141
|
Does your control support padding for items

ToolBar1->PopupFlatAppearance = false;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Padding = L"2,12,2,2";
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->BackColor = RGB(255,255,255);
var_Items->BackgroundExt = L"root[pattern=0x000,frame=RGB(128,128,128)](top[2],top[10,text=`<font ;6><fgcolor 808080> group </font></fgcolor>`,align=0x11])";
ToolBar1->Refresh();
|
140
|
How can I display the drop down popup to a different position ( method 2 )

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Popup",TVariant(2),TVariant(100));
var_Item->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
var_Item->ShowPopupArrow = false;
var_Item->ShowPopupOffset = L"-12,-48";
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::RaisedBorder;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
139
|
How can I display the drop down popup to a different position ( method 1 )

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Popup 1",TVariant(2),TVariant(100));
var_Item1->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
var_Item1->ShowPopupArrow = false;
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item1->Items;
var_Items2->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::RaisedBorder;
var_Items2->Add(L"Item 1",TNoParam(),TNoParam());
var_Items2->Add(L"Item 2",TNoParam(),TNoParam());
var_Items2->Add(L"Item 3",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items1->Add(L"Popup 2",TVariant(2),TVariant(200));
var_Item2->ShowPopupAt = 100;
var_Item2->ShowPopupArrow = false;
Extoolbarlib_tlb::IItemsPtr var_Items3 = var_Item2->Items;
var_Items3->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::RaisedBorder;
var_Items3->Add(L"Item 4",TNoParam(),TNoParam());
var_Items3->Add(L"Item 5",TNoParam(),TNoParam());
var_Items3->Add(L"Item 6",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
138
|
Is it possible to show the popup bellow to the item, rather than on the right side

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Popup",TVariant(2),TNoParam());
var_Item->ShowPopupAlign = Extoolbarlib_tlb::ShowPopupAlignEnum::exShowPopupAlignDown;
var_Item->ShowPopupArrow = false;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::FlatBorder;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Popup[arrow=0][popupalign=1][popupapp=1](Item 1,Item 2,Item 3)";
ToolBar1->Refresh();
|
137
|
How can I change the visual appearance for items, when cursor hovers it (hot,EBN)

ToolBar1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->HotBackColor = 0x1000000;
var_Items1->Padding = L"4,8,4,8";
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"[group=0x03][itemspad=4,8,4,8][itemsbghot=0x1000000](Item 1,Item 2,Item 3)";
ToolBar1->Refresh();
|
136
|
How can I change the background color for items, when cursor hovers it (hot)

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->HotBackColor = RGB(255,0,0);
var_Items1->Padding = L"0,8,0,8";
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"[group=0x03][itemspad=0,8,0,8][itemsbghot=RGB(255,0,0)](Item 1,Item 2,Item 3)";
ToolBar1->Refresh();
|
135
|
How can I change the visual appearance for items (EBN)

ToolBar1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->BackColor = 0x1000000;
var_Items1->Padding = L"4,8,4,8";
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"[group=0x03][itemspad=4,8,4,8][itemsbg=0x1000000](Item 1,Item 2,Item 3)";
ToolBar1->Refresh();
|
134
|
How can I change the background color for items

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->BackColor = RGB(255,0,0);
var_Items1->Padding = L"0,8,0,8";
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"[group=0x03][itemspad=0,8,0,8][itemsbg=RGB(255,0,0)](Item 1,Item 2,Item 3)";
ToolBar1->Refresh();
|
133
|
Is it possible to hide the popup's arrow

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Popup",TVariant(2),TNoParam());
var_Item->ShowPopupArrow = false;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Popup[arrow=0][popupapp=6](Item 1,Item 2,Item 3)";
ToolBar1->Refresh();
|
132
|
How do I hide the left gray portion to be shown on the drop down menu/popup (method 2)

ToolBar1->PopupFlatImageWidth = 0;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->Add(L"Popup",TVariant(2),TNoParam())->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
ToolBar1->Refresh();
|
131
|
How do I hide the left gray portion to be shown on the drop down menu/popup (method 1)

ToolBar1->PopupFlatAppearance = false;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Items->Add(L"Popup",TVariant(2),TNoParam())->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
ToolBar1->Refresh();
|
130
|
How can I arrange the drop down item from left to right, rather than top to bottom

// SelectItem event - Occurs when the user selects the item.
void __fastcall TForm1::ToolBar1SelectItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
OutputDebugString( L"Clicked" );
}
ToolBar1->PopupFlatAppearance = false;
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Button",TVariant(2),TNoParam());
var_Item->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"",TVariant(2),TNoParam());
var_Item1->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items2 = var_Item1->Items;
var_Items2->Add(L"Item 1",TNoParam(),TNoParam());
var_Items2->Add(L"Item 2",TNoParam(),TNoParam());
var_Items2->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Button[button=0x0113][popupapp=6]([group=0x03](Item 1,Item 2,Item 3))";
ToolBar1->Refresh();
|
129
|
How can I add a drop down button / combobox (method 2)

// SelectItem event - Occurs when the user selects the item.
void __fastcall TForm1::ToolBar1SelectItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
OutputDebugString( L"Clicked" );
}
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Button",TVariant(2),TNoParam());
var_Item->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButtonBottom | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Button[button=275][popupapp=6](Item 1[id=20],Item 2[id=30],Item 3[id=40])";
ToolBar1->Refresh();
|
128
|
How can I add a drop down button / combobox (method 1)

// SelectItem event - Occurs when the user selects the item.
void __fastcall TForm1::ToolBar1SelectItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
OutputDebugString( L"Clicked" );
}
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Button",TVariant(2),TNoParam());
var_Item->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButton | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Button[button=0x13][popupapp=6](Item 1[id=20],Item 2[id=30],Item 3[id=40])";
ToolBar1->Refresh();
|
127
|
I am using exShowAsSelectButton/exShowAsSelectButtonBottom but none of them works. What could be wrong

// SelectItem event - Occurs when the user selects the item.
void __fastcall TForm1::ToolBar1SelectItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
OutputDebugString( L"Clicked" );
}
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Button",TVariant(2),TNoParam());
var_Item->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsSelectButton | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
126
|
How can I add a button (push button)

// SelectItem event - Occurs when the user selects the item.
void __fastcall TForm1::ToolBar1SelectItem(TObject *Sender,Extoolbarlib_tlb::IItem *Itm)
{
OutputDebugString( L"Clicked" );
}
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Button",TNoParam(),TNoParam())->ShowAsButton = Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButtonAutoSize | Extoolbarlib_tlb::ShowAsButtonEnum::exShowAsButton;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Button[button=0x03]";
ToolBar1->Refresh();
|
125
|
How can I display grouping items with no frame arround

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Horizontal Group",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupFrameThickBox | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupFrameSolidBox | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupEqualHeight | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupEqualWidth | Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"A",TNoParam(),TNoParam())->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
var_Items1->Add(L"BC",TNoParam(),TNoParam())->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
var_Items1->Add(L"D",TNoParam(),TNoParam())->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Horizontal Group[group=243](A[id=20][align=1],BC[id=30][align=1],D[id=40][align=1])";
ToolBar1->Refresh();
|
124
|
How can I display grouping items of the same size/width/height

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Horizontal Group",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupFrameThickBox | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupFrameSolidBox | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupEqualHeight | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupEqualWidth | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"A",TNoParam(),TNoParam())->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
var_Items1->Add(L"BC",TNoParam(),TNoParam())->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
var_Items1->Add(L"D",TNoParam(),TNoParam())->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Horizontal Group[group=0xF1](A[id=20][align=1],BC[id=30][align=1],D[id=40][align=1])";
ToolBar1->Refresh();
|
123
|
Is it possible to display a ticker frame arround grouping items

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Horizontal Group",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupFrameThickBox | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupFrameSolidBox | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Horizontal Group[group=193](Item 1[id=20],Item 2[id=30],Item 3[id=40])";
ToolBar1->Refresh();
|
122
|
How do I display items horizontally arranged

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Horizontal Group",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Horizontal Group[group=0x01](Item 1[id=20],Item 2[id=30],Item 3[id=40])";
ToolBar1->Refresh();
|
121
|
Is it possible to expand an item when it is clicked (tree,group,vertical)

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Expand",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item->Check = true;
var_Item->ShowPopupOnChecked = true;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Padding = L"22,0,0,0";
var_Items1->Add(L"Radio 1",TNoParam(),TNoParam())->Radio = true;
var_Items1->Add(L"Radio 2",TNoParam(),TNoParam())->Radio = true;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",TNoParam(),TNoParam());
var_Item1->Radio = true;
var_Item1->Checked = true;
var_Item->Checked = true;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = TVariant(String("Expand[typ=1][chk=1][spchk=-1][group=0x0103][itemspad=22,0,0,0](Radio 1[id=20][typ=2],Radio 2[id=30][typ=2],Radio 3[id=40][typ=") +
"2][chk=1])");
ToolBar1->Refresh();
|
120
|
Is it possible to expand an item when it is clicked (tree,group,vertical)

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Expand",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupVertical | Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item->Check = true;
var_Item->ShowPopupOnChecked = true;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Padding = L"22,0,0,0";
var_Items1->Add(L"Radio 1",TNoParam(),TNoParam())->Radio = true;
var_Items1->Add(L"Radio 2",TNoParam(),TNoParam())->Radio = true;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Radio 3",TNoParam(),TNoParam());
var_Item1->Radio = true;
var_Item1->Checked = true;
var_Item->Checked = true;
ToolBar1->Refresh();
|
119
|
Is it possible to expand an item when it is clicked (group)

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Expand",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item->ItemHeight = 24;
var_Item->Check = true;
var_Item->ShowPopupOnChecked = true;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
ToolBar1->Refresh();
|
118
|
Is it possible to extend an item when it is clicked

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Expand",TVariant(2),TNoParam());
var_Item->Check = true;
var_Item->ShowPopupOnChecked = true;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
var_Items1->Add(L"Item 3",TNoParam(),TNoParam());
var_Items1->PopupAppearance = Extoolbarlib_tlb::ToolBarAppearanceEnum::ShadowBorder;
ToolBar1->Refresh();
|
117
|
Does your control implement padding for item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->BackColor = RGB(250,250,250);
var_Items->Add(L"Item",TNoParam(),TNoParam())->Padding = L"4,4,4,4";
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[pad=4,4,4,4]";
ToolBar1->Refresh();
|
116
|
How can I add an empty item for a horizontal group

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
var_Items1->Add(L"Item 1",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"",TVariant(2),TNoParam());
var_Item1->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupCenter | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item1->ItemHeight = 12;
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Item1->Items->Add(L"",TNoParam(),TNoParam());
var_Item2->Enabled = false;
var_Item2->ItemHeight = 8;
var_Item2->CaptionWidth = 8;
var_Items1->Add(L"Item 2",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
115
|
How can I add an empty/separator item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TNoParam(),TNoParam());
var_Item->Enabled = false;
var_Item->ItemHeight = 2;
var_Item->CaptionWidth = 8;
var_Item->BackColor = RGB(240,240,240);
var_Items->Add(L"Item",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
114
|
How can I add an empty/frame item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item 1",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exGroupPopupCenter | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
var_Item->ItemHeight = 12;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Item->Items->Add(L"",TNoParam(),TNoParam());
var_Item1->Enabled = false;
var_Item1->ItemHeight = 8;
var_Item1->CaptionWidth = 8;
var_Items->Add(L"Item 2",TNoParam(),TNoParam());
ToolBar1->Refresh();
|
113
|
How can I specify the height of the item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->BackColor = RGB(250,250,250);
var_Items->Add(L"Item",TNoParam(),TNoParam())->ItemHeight = 64;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[height=64]";
ToolBar1->Refresh();
|
112
|
How can I specify the width of the item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->BackColor = RGB(250,250,250);
var_Items->Add(L"Item",TNoParam(),TNoParam())->CaptionWidth = 128;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[captionwidth=128]";
ToolBar1->Refresh();
|
111
|
How do I align the item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->BackColor = RGB(250,250,250);
var_Items->Add(L"Item",TNoParam(),TNoParam());
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Item",TNoParam(),TNoParam());
var_Item->Alignment = Extoolbarlib_tlb::AlignmentEnum::exCenter;
var_Item->CaptionWidth = 128;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items->Add(L"Item",TNoParam(),TNoParam());
var_Item1->Alignment = Extoolbarlib_tlb::AlignmentEnum::exRight;
var_Item1->CaptionWidth = 128;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[align=1]";
ToolBar1->Refresh();
|
110
|
How can I underline the item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Underline = true;
var_Items->Add(L"<u>Item</u>",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[und]";
ToolBar1->Refresh();
|
109
|
How can I show the item as strikeout

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Strikeout = true;
var_Items->Add(L"<s>Item</s>",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[stk]";
ToolBar1->Refresh();
|
108
|
How can I show the item in italics

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Italic = true;
var_Items->Add(L"<i>Item</i>",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[itl]";
ToolBar1->Refresh();
|
107
|
How can I show the item in bold

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Bold = true;
var_Items->Add(L"<b>Item</b>",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[bld]";
ToolBar1->Refresh();
|
106
|
How can I show the item as disabled but still be able to select or use it

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->ShowAsDisabled = true;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[showdis=1]";
ToolBar1->Refresh();
|
105
|
How can I enable or disable an item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->Enabled = false;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[dis]";
ToolBar1->Refresh();
|
104
|
How can I add a separator item

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->CaptionWidth = 128;
var_Items->Add(L"<font ;6>separator",TVariant(1),TNoParam());
var_Items->Add(L"Item",TNoParam(),TNoParam())->CaptionWidth = 128;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"<font ;6>separator[sep]";
ToolBar1->Refresh();
|
103
|
How can I change the item's foreground color

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
var_Items->Add(L"Item",TNoParam(),TNoParam())->ForeColor = RGB(255,0,0);
var_Items->Add(L"<fgcolor FF0000>Item",TNoParam(),TNoParam());
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Item[fg=RGB(255,0,0)]";
ToolBar1->Refresh();
|
102
|
How can I change the item's background/backcolor, when the item is selected/checked (radio-buttons)

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"",TVariant(2),TNoParam());
var_Item->GroupPopup = Extoolbarlib_tlb::GroupPopupEnum::exNoGroupPopupFrame | Extoolbarlib_tlb::GroupPopupEnum::exGroupPopup;
Extoolbarlib_tlb::IItemsPtr var_Items1 = var_Item->Items;
Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items1->Add(L"Radio 1",TNoParam(),TNoParam());
var_Item1->HotBackColor = RGB(255,255,255);
var_Item1->SelBackColor = RGB(255,0,0);
var_Item1->SelHotBackColor = RGB(255,0,0);
var_Item1->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item1->Radio = true;
var_Item1->RadioGroup = 100;
var_Item1->Checked = true;
Extoolbarlib_tlb::IItemPtr var_Item2 = var_Items1->Add(L"Radio 2",TNoParam(),TNoParam());
var_Item2->HotBackColor = RGB(255,255,255);
var_Item2->SelBackColor = RGB(255,0,0);
var_Item2->SelHotBackColor = RGB(255,0,0);
var_Item2->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item2->Radio = true;
var_Item2->RadioGroup = 100;
var_Items1->Add(L"",TNoParam(),TNoParam())->ToString = L"Radio 3[typ=2][show=1][grp=100][bghot=RGB(255,255,255)][bgsel=RGB(255,0,0)][bgselhot=RGB(255,0,0)]";
ToolBar1->Refresh();
|
101
|
How can I change the item's background/backcolor, when the item is selected/checked (check-box)

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Check 1",TNoParam(),TNoParam());
var_Item->HotBackColor = RGB(255,255,255);
var_Item->SelBackColor = RGB(255,0,0);
var_Item->SelHotBackColor = RGB(255,0,0);
var_Item->ShowCheckedAsSelected = Extoolbarlib_tlb::ShowCheckedAsSelectedEnum::exDisplayItemHighlight;
var_Item->Checked = true;
var_Item->Check = true;
var_Items->Add(L"",TNoParam(),TNoParam())->ToString = L"Check 2[typ=1][chk=0][show=1][bghot=RGB(255,255,255)][bgsel=RGB(255,0,0)][bgselhot=RGB(255,0,0)]";
ToolBar1->Refresh();
|